package com.ouheng.shop.service;

import java.util.List;
import java.util.Map;

import com.ouheng.common.domain.Tree;
import com.ouheng.shop.domain.ProductDO;

/**
 * 
 * 
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2018-08-22 11:18:15
 */
public interface ProductService {
	
	ProductDO get(Long id);
	
	List<ProductDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(ProductDO product,List<Object> listproperty,List<Object> listprice,List<Object> listsize,List<Object> listcolor);
	
	int update(ProductDO product);
	
	int remove(Long id);
	
	int batchRemove(Long[] ids);
	
	int saveImage(ProductDO product,List<Object> list,List<Object> list1);
	
	Tree<ProductDO> getTree(Long id);
	
//	void saveRelevance(ProductDO product);
	
	void saveRelevance(Long pid,Long[] ppids);
	
}
